package com.ympc.pojo;

import java.util.Date;

/**
 * 学生作业提交实体类
 */
public class StudentAssignment {
    private Integer id;
    private Integer assignmentId; // 作业ID
    private Integer studentId; // 学生ID
    private String content; // 作业内容（文本）
    private String filePath; // 文件路径
    private String fileName; // 文件名
    private Date submitTime; // 提交时间
    private String status; // 状态：submitted(已提交), graded(已批改)
    private Integer score; // 分数
    private String comment; // 教师评语
    
    // 关联对象（用于显示）
    private Assignment assignment; // 作业信息
    private Student student; // 学生信息

    public StudentAssignment() {
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getAssignmentId() {
        return assignmentId;
    }

    public void setAssignmentId(Integer assignmentId) {
        this.assignmentId = assignmentId;
    }

    public Integer getStudentId() {
        return studentId;
    }

    public void setStudentId(Integer studentId) {
        this.studentId = studentId;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public String getFilePath() {
        return filePath;
    }

    public void setFilePath(String filePath) {
        this.filePath = filePath;
    }

    public String getFileName() {
        return fileName;
    }

    public void setFileName(String fileName) {
        this.fileName = fileName;
    }

    public Date getSubmitTime() {
        return submitTime;
    }

    public void setSubmitTime(Date submitTime) {
        this.submitTime = submitTime;
    }

    public String getStatus() {
        return status;
    }

    public void setStatus(String status) {
        this.status = status;
    }

    public Integer getScore() {
        return score;
    }

    public void setScore(Integer score) {
        this.score = score;
    }

    public String getComment() {
        return comment;
    }

    public void setComment(String comment) {
        this.comment = comment;
    }

    public Assignment getAssignment() {
        return assignment;
    }

    public void setAssignment(Assignment assignment) {
        this.assignment = assignment;
    }

    public Student getStudent() {
        return student;
    }

    public void setStudent(Student student) {
        this.student = student;
    }

    @Override
    public String toString() {
        return "StudentAssignment{" +
                "id=" + id +
                ", assignmentId=" + assignmentId +
                ", studentId=" + studentId +
                ", content='" + content + '\'' +
                ", filePath='" + filePath + '\'' +
                ", fileName='" + fileName + '\'' +
                ", submitTime=" + submitTime +
                ", status='" + status + '\'' +
                ", score=" + score +
                ", comment='" + comment + '\'' +
                '}';
    }
}

